FROM keymetrics/pm2
MAINTAINER tangxinming<zhiyuancode@foxmail.com>

RUN mkdir -p /home/www/service

WORKDIR /home/www/service

COPY . /home/www/service

RUN npm install --production

EXPOSE 3050

CMD ["pm2-runtime", "start", "index.js"]